import * as types from '../_types/user';


const initialState = {
}

export default function user(state = initialState, action) {
    const {type, payload} = action;
    switch(type) {
        case types.SET_USER: {
            return {
                ...state,
                ...payload,
            }
        }
        case types.LOGOUT: {
            return {
            }
        }
        default: {
            return state;
        }
    }
}